<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .loading {
            position: relative;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            height: 50px;
        }
        .title {
            font-size: 10px;
            padding: 0 15px;
        }

        .loader {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 5px solid transparent;
            border-top-color: linear-gradient( red, yellow);
            background-image: linear-gradient(360deg, red, yellow, green);
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);  
            }
        }
    </style>
</head>
<body>
     <div class="loading">
        <div class="loader">
            <!-- <div class="loader-in"></div> -->
        </div>
        <div class="title">加载中...</div>
    </div>
</body>
</html>